/**
 *  Copyright(c) 2013 TKEASIA All rights reserved.
 */
package com.wiloon.androidx.utils;

/**
 * Constants
 */
public class AgentConstants extends CommonConstants {

	public static final int IMAGE_WIDTH = 300;
	public static final int IMAGE_HEIGHT = 200;
	public static final String IMAGE_TYPE = "image/*";

	public static final String IMAGE_TYPE_JPG = "JPG";
	public static final String IMAGE_TYPE_JPEG = "JPEG";
	public static final String IMAGE_TYPE_PNG = "PNG";
	public static final String IMAGE_TYPE_BMP = "BMP";

	public static final String AGENT_NAME = "MyInfo";

	public static final String CACHE_PATH = "Cache";

	public static final String LOG_PATH = "Log";

	public static final String DOWNLOAD_PATH = "Download";

	public static final String LOG_CRASH_FILE_NAME = "crash.log";

	/** 00 正常返回 */
	public static final String RESULT_OK = "00";
	/** 01 无数据 */
	public static final String RESULT_NO_DATA = "01";
	/** 02 系统异常 */
	public static final String RESULT_SYS_ERROR = "02";
	/** 03 业务异常 */
	public static final String RESULT_BUSINESS_ERROR = "03";
	/** 请假类型 */
	public static final String TYPE_LEAVE = "1";
	/** 加班类型 */
	public static final String TYPE_OT = "2";
	/** 同意申请 */
	public static final String APPROVE = "1";
	/** 拒绝申请 */
	public static final String REJECT = "2";
	/** 性别：男 */
	public static final String MAN = "M";
	/** 必须更新 */
	public static final String TYPE_MUST_UPDATE = "0";
	/** 可选更新 */
	public static final String TYPE_OPTIONAL_UPDATE = "1";

	/** 图片前部分串 发布版 */
	public static final String IMG_URL_FRONT_PART = "http://myinfo.thyssen.com.cn";

	/** 图片前部分串 测试版 */
//	 public static final String IMG_URL_FRONT_PART =
//	 "http://172.16.11.49:805";

	/** 错误日志的后缀 */
	public static final String ERROR_LOG_SUFFIX = "log";

	public static class Service {
		public static final String AGENT_SERVICE_ACTION = "com.thyssen.myinfo.activity.AgentService";
	}

	public static class Server {
		/** 服务器前部分串 发布版 */
		public static final String SERVICE_HTTP_PERFIX = "http://myinfoapp.thyssen.com.cn:808/Webservice";
		/** 服务器前部分串 测试版 */
//		 public static final String SERVICE_HTTP_PERFIX =
//		 "http://myinfoappdev.thyssen.com.cn:809/Webservice";
		public static final String SERVICE_SUFFIX = "DataService";
		public static final String MODULE_COMMON_PATH = "SystemCommon/SystemCommon.asmx";
		public static final String MODULE_SKYLINE_OF_TKEC_PATH = "SkylineOfTKEC/SkylineOfTKEC.asmx";
		public static final String MODULE_INFO_PATH = "PersonalInfo/PersonalInfo.asmx";
		public static final String MODULE_SALARY_PATH = "PayrollInfo/Salary.asmx";
		public static final String MODULE_APPLICATION_AND_APPROVAL_PATH = "Approval/Approval.asmx";
		public static final int CONNECTION_TIMEOUT = 30000;
		public static final int SOCKET_TIMEOUT = 30000;

		/** 用户登录 */
		public static final String METHOD_LOGIN = "Login";

		/** 取得新闻信息推送内容 */
		public static final String METHOD_GET_NOTIFICATION = "GetNotification";

		/** 取得新版本 */
		public static final String METHOD_GET_ANDROID_VERSION = "GetAndroidVersion";

		/** 取得新闻列表 */
		public static final String METHOD_GET_NEWS_LIST = "GetNewsList";

		/** 取得新闻详细 */
		public static final String METHOD_GET_NEWS_DETAIL = "GetNewsDetail";

		/** 取得城市列表 */
		public static final String METHOD_GET_OPPORTUNITY_CITY = "GetOpportunityCity";

		/** 取得内部招聘列表 */
		public static final String METHOD_GET_OPPORTUNITY_LIST = "GetOpportunityList";

		/** 取得登录用户详细信息 */
		public static final String METHOD_GET_MY_INFO = "GetMyInfo";

		/** 取得用户详细信息 */
		public static final String METHOD_GET_USER_INFO = "GetUserInfo";

		/** 校验工资密码 */
		public static final String METHOD_CHECK_SALARY_PASSWORD = "CheckSalaryPassword";

		/** 修改工资密码 */
		public static final String METHOD_CHANGE_SALARY_PASSWORD = "ChangeSalaryPassword";

		/** 取得工资历史 */
		public static final String METHOD_GET_SALARY_HISTORY = "GetSalaryHistory";

		/** 取得工资信息 */
		public static final String METHOD_GET_SALARY_INFORMATION = "GetSalaryInformation";

		/** 取得福利 */
		public static final String METHOD_GET_SALARY_BENEFIT = "GetSalaryBenefit";

		/** 取得年终奖 */
		public static final String METHOD_Get_YEAR_BONUS = "GetYearBonus";

		/** 取得请假信息 */
		public static final String METHOD_GET_LEAVE_INFO = "GetLeaveInfo";

		/** 取得时长 */
		public static final String METHOD_GET_DURATION = "GetDuration";

		/** 提交请假申请 */
		public static final String METHOD_SAVE_LEAVE_APPLICATION = "SaveLeaveApplication";

		/** 提交加班申请 */
		public static final String METHOD_SAVE_OT_APPLICATION = "SaveOTApplication";

		/** 取得请假历史 */
		public static final String METHOD_GET_LEAVE_HISTORY = "GetLeaveHistory";

		/** 取得加班历史 */
		public static final String METHOD_GET_OT_HISTORY = "GetOTHistory";

		/** 取得请假待审批列表 */
		public static final String METHOD_GET_LEAVE_APPROVAL_LIST = "GetLeaveApprovalList";

		/** 取得加班待审批列表 */
		public static final String METHOD_GET_OT_APPROVAL_LIST = "GetOTApprovalList";

		/** 取得请假审批历史 */
		public static final String METHOD_GET_LEAVE_APPROVAL_HISTORY = "GetLeaveApprovalHistory";

		/** 取得加班审批历史 */
		public static final String METHOD_GET_OT_APPROVAL_HISTORY = "GetOTApprovalHistory";

		/** 提交审批(请假／加班) */
		public static final String METHOD_SAVE_APPROVAL = "SaveApproval";

		/** 取得全部待审批数量(请假／加班) */
		public static final String METHOD_GET_APPROVAL_TOTAL = "GetApprovalTotal";

		/** 提交审批(全部请假／加班) */
		public static final String METHOD_SAVE_APPROVAL_ALL = "SaveApprovalAll";

		/** 取得可审批人员列表 */
		public static final String METHOD_GET_APPROVAL_MEMBER = "GetApprovalMember";

		/** 取得附件 */
		public static final String METHOD_DOWNLOAD_LEAVE_FILE = "DownLoadLeaveFile";

		/** 上传文件 */
		public static final String METHOD_UPLOAD_FILE = "UploadFile";

		/** 下载文件 */
		public static final String METHOD_DOWNLOAD_FILE = "DownloadFile";

		/** 下载文件 */
		public static final String METHOD_UPLOAD_ERROR_LOG = "UploadErrorLog";

	}
}